package cqrtplm.config;

import cqrtplm.info.RuleInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
public class RuleInfoConfig {

    @Bean
    public List<RuleInfo> rules() {
        List<RuleInfo> rules = new ArrayList<>();

        rules.add(new RuleInfo("[CPLWW]", "[CPLWW]", "CPL周", "[CPLWW]"));
        rules.add(new RuleInfo("[CRMPO]", "[CRMPO]", "CRM订单客户PO", "[CRMPO]"));
        rules.add(new RuleInfo("[KHJX]", "[KHJX]", "CRM项次客户机型", "[KHJX]"));
        rules.add(new RuleInfo("[KHLSH]", "[KHLSH]", "完整VIN", "[KHLSH]"));
        rules.add(new RuleInfo("[LOGO]", "[LOGO]", "规则内容是[LOGO]时,以说明内容作为图片名称打印", "[LOGO]"));
        rules.add(new RuleInfo("[MM]", "03", "2位自然月份", "[MM]"));
        rules.add(new RuleInfo("[TT]", "[TT]", "2位自然日期", "[TT]"));
        rules.add(new RuleInfo("[VIN]", "[VIN]", "完整VIN", "[VIN]"));
        rules.add(new RuleInfo("[VIN000]", "VIN后三位", "VIN后三位", "VIN后三位"));
        rules.add(new RuleInfo("[VIN0000]", "VIN后四位", "VIN后四位", "VIN后四位"));
        rules.add(new RuleInfo("[VIN00000]", "VIN后五位", "VIN后五位", "VIN后五位"));
        rules.add(new RuleInfo("[VIN000000]", "VIN后六位", "VIN后六位", "VIN后六位"));
        rules.add(new RuleInfo("[VIN-A]", "去掉首位A的VIN", "去掉首位A的VIN", "去掉首位A的VIN"));
        rules.add(new RuleInfo("[YY]", "25", "2位自然年份", "[YY]"));
        rules.add(new RuleInfo("[YYYY]", "2025", "4位自然年份", "[YYYY]"));
        rules.add(new RuleInfo("☆[VIN]☆", "☆[VIN]☆", "☆A+年(2位)+月(2位)+流水号(6位)☆", "☆[VIN]☆"));
        rules.add(new RuleInfo("☆R210[VIN]☆", "☆R210[VIN]☆", "☆R210 A+年(2位)+月(2位)+流水号(6位)☆", "☆R210[VIN]☆"));
        return rules;
    }
}